﻿using MediatR;
using SY.BasicData.Api.Read.Applications.Basic.Command;
using SY.BasicData.Api.Read.Dto;
using SY.BasicData.Domain;
using SY.BasicData.Domain.Cultivation;
using SY.BasicData.ErrorCode;
using SY.BasicData.Infrastructures;

namespace SY.BasicData.Api.Read.Applications.Basic.CommandHandler
{
    public class GetPicQueryCommandHandler : IRequestHandler<GetPicQueryCommand, ApiResult<PicDto>>
    {
        private readonly IBaseRepository<PictureModel> PictureRepository;
        private readonly IBaseRepository<CultivationModel> cultivationRepository;

        public GetPicQueryCommandHandler(IBaseRepository<PictureModel> pictureRepository, IBaseRepository<CultivationModel> cultivationRepository)
        {
            PictureRepository = pictureRepository;
            this.cultivationRepository = cultivationRepository;
        }

        public Task<ApiResult<PicDto>> Handle(GetPicQueryCommand request, CancellationToken cancellationToken)
        {
            throw new NotImplementedException();
        }
    }
}
